<template>
    <view @tap="__e" :class="['item-container', 'global-shadow', 'data-v-6f23ddd4', theme]" :data-event-opts="[['tap', [['toDetail', ['$event']]]]]" hoverClass="hover">
        <view class="left-content data-v-6f23ddd4">
            <image class="thumb data-v-6f23ddd4" mode="aspectFill" :src="activity.thumb"></image>
            <view class="expired-mask data-v-6f23ddd4" v-if="activity.union_status == 'expired'">
                <image class="mask-icon data-v-6f23ddd4" src="/static/end-mask.png"></image>
            </view>
        </view>
        <view class="right-content data-v-6f23ddd4">
            <view :class="['status', 'data-v-6f23ddd4', activity.union_status]">
                <view class="text data-v-6f23ddd4">{{ activity.union_status_text }}</view>
            </view>
            <view class="title data-v-6f23ddd4">{{ '【' + activity.type_text + '】' + activity.title }}</view>
            <view class="bottom data-v-6f23ddd4">
                <view class="left data-v-6f23ddd4">
                    <view class="price-c data-v-6f23ddd4">
                        <price-display @__l="__l" class="data-v-6f23ddd4" :discountPrefix="null" :info="activity" prefix="product_" vueId="1caf0246-1"></price-display>
                    </view>
                </view>
                <view class="right data-v-6f23ddd4">{{ '' + activity.prize_total + '份' }}</view>
            </view>
        </view>
    </view>
</template>

<script>
import priceDisplay from '@/components/PriceDisplay/PriceDisplay';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/myActivity/components/ActivityItem'],
    {
        '61d6': function (t, i, n) {
            'use strict';

            var e = n('cde5');
            n.n(e).a;
        },
        bd06: function (t, i, n) {
            'use strict';

            (function (t) {
                Object.defineProperty(i, '__esModule', {
                    value: true
                });
                i.default = void 0;
                var n = {
                    props: {
                        info: {
                            type: Object,
                            default: function () {
                                return {};
                            }
                        },
                        tag: {
                            type: String
                        },
                        theme: {
                            type: String
                        }
                    },
                    data: function () {
                        return {};
                    },
                    computed: {
                        activity: function () {
                            return this.info.activity || {};
                        }
                    },
                    methods: {
                        toDetail: function () {
                            if ('seckill' == this.activity.type) {
                                t.navigateTo({
                                    url: '/pages/productDetail/index?uuid=' + this.activity.product_uuid + '&activityId=' + this.activity.id
                                });
                            } else {
                                t.navigateTo({
                                    url: '/pages/'.concat(this.activity.type, 'Activity/detail?uuid=').concat(this.activity.uuid)
                                });
                            }
                        }
                    }
                };
                i.default = n;
            }.call(this, n('543d').default));
        },
        cde5: function (t, i, n) {},
        f0a5: function (t, i, n) {
            'use strict';

            n.r(i);
            var e = n('bd06');
            var c = n.n(e);
            for (var a in e) {
                if (['default'].indexOf(a) < 0) {
                    (function (t) {
                        n.d(i, t, function () {
                            return e[t];
                        });
                    })(a);
                }
            }
            i.default = c.a;
        },
        f280: function (t, i, n) {
            'use strict';

            n.d(i, 'b', function () {
                return c;
            });
            n.d(i, 'c', function () {
                return a;
            });
            n.d(i, 'a', function () {
                return e;
            });
            var e = {
                PriceDisplay: function () {
                    return n.e('components/PriceDisplay/PriceDisplay').then(n.bind(null, '6b05'));
                }
            };
            var c = function () {
                this.$createElement;
                this._self._c;
            };
            var a = [];
        },
        f708: function (t, i, n) {
            'use strict';

            n.r(i);
            var e = n('f280');
            var c = n('f0a5');
            for (var a in c) {
                if (['default'].indexOf(a) < 0) {
                    (function (t) {
                        n.d(i, t, function () {
                            return c[t];
                        });
                    })(a);
                }
            }
            n('61d6');
            var o = n('f0c5');
            var u = Object(o.a)(c.default, e.b, e.c, false, null, '6f23ddd4', null, false, e.a, void 0);
            i.default = u.exports;
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'pages/myActivity/components/ActivityItem-create-component',
    {
        'pages/myActivity/components/ActivityItem-create-component': function (t, i, n) {
            n('543d').createComponent(n('f708'));
        }
    },
    [['pages/myActivity/components/ActivityItem-create-component']]
]);
</script>
<style>
@import './ActivityItem.css';
</style>
